package com.model;

/**
 * Bpm_bis_typeId entity. @author MyEclipse Persistence Tools
 */

public class Bpm_bis_typeId implements java.io.Serializable {

	// Fields

	private String bpm_typ_id;
	private String typ_ec_code;

	// Constructors

	/** default constructor */
	public Bpm_bis_typeId() {
	}

	/** full constructor */
	public Bpm_bis_typeId(String bpm_typ_id, String typ_ec_code) {
		this.bpm_typ_id = bpm_typ_id;
		this.typ_ec_code = typ_ec_code;
	}

	// Property accessors

	public String getBpm_typ_id() {
		return this.bpm_typ_id;
	}

	public void setBpm_typ_id(String bpm_typ_id) {
		this.bpm_typ_id = bpm_typ_id;
	}

	public String getTyp_ec_code() {
		return this.typ_ec_code;
	}

	public void setTyp_ec_code(String typ_ec_code) {
		this.typ_ec_code = typ_ec_code;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bpm_bis_typeId))
			return false;
		Bpm_bis_typeId castOther = (Bpm_bis_typeId) other;

		return ((this.getBpm_typ_id() == castOther.getBpm_typ_id()) || (this
				.getBpm_typ_id() != null && castOther.getBpm_typ_id() != null && this
				.getBpm_typ_id().equals(castOther.getBpm_typ_id())))
				&& ((this.getTyp_ec_code() == castOther.getTyp_ec_code()) || (this
						.getTyp_ec_code() != null
						&& castOther.getTyp_ec_code() != null && this
						.getTyp_ec_code().equals(castOther.getTyp_ec_code())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBpm_typ_id() == null ? 0 : this.getBpm_typ_id()
						.hashCode());
		result = 37
				* result
				+ (getTyp_ec_code() == null ? 0 : this.getTyp_ec_code()
						.hashCode());
		return result;
	}

}